package cn.flymod.DHG_mcpePlusEX;

import android.app.*;
import android.content.*;
import android.net.*;
import android.os.*;
import android.view.*;
import android.view.View.*;
import android.widget.*;

public class a_modpe extends Activity
{
    /** Called when the activity is first created. */
    @Override
	TextView activitymodpeTextView1,activitymodpeTextView2,activitymodpeTextView3;
	Button activitymodpeButton1,activitymodpeButton2,activitymodpeButton3,activitymodpeButton4,activitymodpeButton5,activitymodpeButton6,activitymodpeButton7,activitymodpeButton8;
    public void onCreate(Bundle savedInstanceState)
	{
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_modpe);
		
		getActionBar().setDisplayHomeAsUpEnabled(true);
		
	    activitymodpeTextView1=(TextView)findViewById(R.id.activitymodpeTextView1);
		activitymodpeTextView2=(TextView)findViewById(R.id.activitymodpeTextView2);
		activitymodpeTextView3=(TextView)findViewById(R.id.activitymodpeTextView3);
		activitymodpeButton1=(Button)findViewById(R.id.activitymodpeButton1);
		activitymodpeButton2=(Button)findViewById(R.id.activitymodpeButton2);
		activitymodpeButton3=(Button)findViewById(R.id.activitymodpeButton3);
		activitymodpeButton4=(Button)findViewById(R.id.activitymodpeButton4);
		activitymodpeButton5=(Button)findViewById(R.id.activitymodpeButton5);
		activitymodpeButton6=(Button)findViewById(R.id.activitymodpeButton6);
		activitymodpeButton7=(Button)findViewById(R.id.activitymodpeButton7);
		activitymodpeButton8=(Button)findViewById(R.id.activitymodpeButton8);
		
	    activitymodpeTextView1.setText("mod和JavaScript");
		activitymodpeTextView2.setText("ModPE通过JavaScript语言编写,可用启动器挂载,作用类似于mod,但与mod不同,js可以自己编辑、更改.(注:游戏更新会导致mod失效,但不会导致js失效!);mod即补丁,可以实现一些官方额外的功能,自己不能修改.");
		activitymodpeTextView3.setText("●如何使用ModPE脚本:下载.js格式的脚本文件→打开启动器→点击扳手→选择启动器设置→勾选Enable MidPE support→点击Manage ModPE Script并选择下载好的.js文件即可.\n●如何使用mod:下载.mod格式的补丁→打开启动器,点击小扳手→选择启动器设置→去掉安全模式的勾→点击管理补丁(或小扳手第一项)找到下载好的.mod格式文件即可.");
		activitymodpeButton1.setText("minecraftpe吧精品区mod和js分类");
		activitymodpeButton2.setText("常用mod下载");
		activitymodpeButton3.setText("丿神圣灬使者丶 制作的js 下载/说明");
		activitymodpeButton4.setText("小地图js");
		activitymodpeButton5.setText("想当文青的铅笔 制作的js 下载/说明");
		activitymodpeButton6.setText("小綮丶 制作的js 下载/说明");
		activitymodpeButton7.setText("视频教程 - Js的用法");
		activitymodpeButton8.setText("qsefthukol 制作的js 下载");
		
		activitymodpeButton1.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"正在进入minecraftpe吧精品区...",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://tieba.baidu.com/f?kw=minecraftpe&lm=4&cid=7&gaword=mod%E5%92%8C%E6%8F%92%E4%BB%B6&lp=sfrs_good_area_link&mo_device=1");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymodpeButton2.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"该资源由mods for pe 2提供,FLY_MOD整理",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://pan.baidu.com/share/link?shareid=476626767&uk=2869900060");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymodpeButton3.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"丿神圣灬使者丶 作品 推荐使用只看楼主功能",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://tieba.baidu.com/p/2749047141");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymodpeButton4.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"qsefthukol 作品",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://tieba.baidu.com/p/2694260827");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymodpeButton5.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"想当文青的铅笔 作品 推荐使用只看楼主功能",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://tieba.baidu.com/p/2698387148");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymodpeButton6.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"小綮丶 作品",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://tieba.baidu.com/p/2660493201");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymodpeButton7.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"FLY_MOD录制,请自行下载观看",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://pan.baidu.com/share/link?shareid=2090480140&uk=2470387536");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
		activitymodpeButton8.setOnClickListener(new OnClickListener(){
				public void onClick(View v)
				{
					Toast.makeText(getApplicationContext(),"qsefthukol 作品",Toast.LENGTH_LONG).show();
					Uri uri= Uri.parse("http://pan.baidu.com/share/link?shareid=2356604451&uk=2013776426");
					Intent intent = new Intent(Intent.ACTION_VIEW,uri);
					startActivity(intent);
				}
	    	});
			
    }
}
